<!doctype html>
<html>
    <head>
	<link rel="icon" type="image/ico" href="<?=base_url();?>/favicon.ico" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width" />
    <title><?=isset($title)? $title: 'School System';?></title>
	<?if(isset($use_bootstrap3) && $use_bootstrap3):?>  
	<link rel="stylesheet" href="<?=style_url('bootstrap.minv3.2.0');?>"> 
	<link rel="stylesheet" href="<?=style_url('bootstrap-theme.v3.2.0.min');?>">
	<?else:?>
	<link rel="stylesheet" href="<?=style_url('bootstrap.min');?>">
	<?endif;?>
	<link rel="stylesheet" href="<?=style_url('foundation.min');?>">
	<link rel="stylesheet" href="<?=style_url('style');?>">
	<link rel="stylesheet" href="<?=style_url('glyphicons');?>">
	<link rel="stylesheet" href="<?=style_url('jquery.growl');?>">
	<link rel="stylesheet" href="<?=style_url('jquery.smoothness.ui');?>"> <!--<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">-->
	<link rel="stylesheet" href="<?=style_url('hint');?>">
	
	<script type="text/javascript" src="<?php echo script_url('vendor/custom.modernizr');?>"></script>
	
    <script src="<?php echo script_url('custom/jquery1.9.1'); ?>"></script> <!--<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>-->
	<script>window.jQuery || document.write('<script src="<?php echo script_url('vendor/jquery'); ?>"><\/script>')</script>
	<script type="text/javascript" src="<?php echo script_url('custom/calendarscript'); ?>"></script>
	<!-- start css files for Grocery CRUD-->
	<?php if(!empty($output->css_files)):?>
		<?php  foreach($output->css_files as $file): ?>
			<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
		<?php endforeach; ?>
	<?php endif;?>
	<!-- end css files for Grocery CRUD-->
    </head>
	

    <body>
        <!-- message dialog box -->
        <!-- start contents -->
		<div>
			<?$this->load->view('layouts/_application_top_nav');?>
		</div>
		<div class="row semi-full-width">
			<noscript>
				<div class="alert alert-warning">Javascript has been disabled on your browser. functions may not work properly.</div>
			</noscript>
			
				<?php echo isset($global_message) ? $global_message : FALSE;?>
			<!--User Menus-->
				<div class="large-3 columns">
					<div class="hide-for-small"><span id="divhider" class="divhider"><a href="#" id="hider">Hide Sidebar</a></span></div>
					<div class="show-for-small"><span id="divhider"><a href="#" id="hider" class="btn btn-small btn-inverse">Hide Sidebar</a></span></div>
					<div class="hidediv">
						<?$this->load->view('layouts/_dynamic_menu')?>
					</div>
				</div>
			<!--User Menus-->

			<!--Main COntent-->
				<div id="content-views" class="large-9 columns content-views">
						<?php echo $yield;?>
				</div>
			<!--Main COntent-->
		</div>
		<div id="msgDialog"><p></p><div class="content"></div></div>
		 <!-- General Modal For Alert -->
		<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;" >
		  <div class="modal-dialog">
			<div class="modal-content">
			  <div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="alertModal_Label">Alert</h4>
			  </div>
			  <div class="modal-body" id="alertModal_Body">
				...
			  </div>
			  <div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			  </div>
			</div><!-- /.modal-content -->
		  </div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
		 <!-- End of alert modal -->
		<footer class="footer hide-for-small">
			<div class="footer-contents center">
				<span class="btn btn-mini"> copyright &copy; <span class="complogo_name1">GoCloud</span><span class="complogo_name2">Asia</span> - 2013</span> 
				<span class="btn btn-mini benchmark">Time Exec: <?=isset($elapsed_time) ? $elapsed_time: '0.0';?></span> 
				<span class="btn btn-mini benchmark">Memory: <?=isset($memory_usage) ? $memory_usage : '0.0';?></span>
			</div>
		</footer>
		<!-- End contents -->
		<script>
		  document.write('<script src=' +
		  ('__proto__' in {} ? '<?=script_url("vendor/zepto");?>' : '<?=script_url("vendor/jquery");?>') +
		  '><\/script>')
		</script>
		<script type="text/javascript" src="<?php echo script_url('custom/jquery-ui-1.10.2');?>"></script><!--<script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>-->
		<script type="text/javascript" src="<?php echo script_url('foundation.min');?>"></script>
		<script type="text/javascript" src="<?php echo script_url('vendor/growl');?>"></script>
		<script type="text/javascript" src="<?php echo script_url('custom/menu'); ?>"></script>
		<script type="text/javascript" src="<?php echo script_url('jquery.tooltipster.min'); ?>"></script>
		<script type="text/javascript" src="<?php echo script_url('custom/myjs'); ?>"></script>
		<script type="text/javascript" src="<?php echo script_url('custom/jquery.growl'); ?>"></script>
		<script type="text/javascript" src="<?php echo script_url('custom/cash'); ?>"></script>
		<script src="<?=script_url('foundation/foundation');?>"></script>
		<script src="<?=script_url('foundation/foundation.dropdown');?>"></script>
		<script src="<?=script_url('foundation/foundation.forms');?>"></script>
		<script src="<?=script_url('foundation/foundation.reveal');?>"></script>
		<script src="<?=script_url('foundation/foundation.section');?>"></script>
		<script src="<?=script_url('foundation/foundation.tooltips');?>"></script>
		<script src="<?=script_url('foundation/foundation.topbar');?>"></script>
		<?if(isset($use_bootstrap3) && $use_bootstrap3):?>  
			<!-- reason putting it as it is brokes the foundation js, include only when use -->
			<script type="text/javascript" src="<?php echo script_url('custom/bootstrapv3.2.0'); ?>"></script>
		<?endif;?>
		
		<script>
		  $(document).foundation();
		</script>
		<script type="text/javascript" src="<?php echo script_url('vendor/bootstrap.min'); ?>"></script>
		<!-- START javascript files for Grocery CRUD-->
		<?php if(!empty($output->js_files)):?>
			<?php foreach($output->js_files as $files): ?>
				<script type="text/javascript" src="<?echo $files;?>"></script>
			<?endforeach;?>
		<?php endif;?>
		<!-- END javascript files for Grocery CRUD-->
	</body>
</html>